package com.ufenlei.alarm
{
	public class Alarm
	{
		[Bindable]
		public var title:String;
		[Bindable]
		public var dueTime:Date;
		public var alarmTime:AlarmTime;
		public function Alarm(time:AlarmTime,t:String):void
		{
			this.title = t;
			this.dueTime = time.toDate();
			this.alarmTime =  time;
		}
		public function toString():String{
			return "[Alarm]"+this.title+" on "+this.dueTime;
		}
		public function setTime(time:AlarmTime):void{
			this.dueTime = time.toDate();
			this.alarmTime = time;
		}
	}
}